package com.shop.shop_end.service;

import com.shop.shop_end.entity.Cate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.shop_end.utils.result.Result;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author
 * @since 2024-04-23
 */
public interface CateService extends IService<Cate> {

    List<Cate> getAllCate();

    Result addOneCate(Cate cate);

    Result deleteCateById(Long cateId);


    Result updateCateById(Cate cate);

    // 继承接口的按主键查询 返回Entity实例
    Cate getCateById(Long cateId);
}
